package com.realife.mbplus.mapper;

import com.alpha.centity.gulisuper.Brand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @version V1.0
 * @author: Albert
 * @date: 2020/5/26 21:49
 * @description:
 */
@Repository
public interface BrandMapper extends BaseMapper<Brand> {

    @Select("select id from tb_brand")
    List<Long> selectBrandIds();

    @Select("select id from tb_brand where id > #{id}")
    List<Long> selectBrandIdsByConditionOfIdRange(@Param("id") Long id);

}
